﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 访问者模式
{
    class VacationVisitor:IVisitor
    {
        public void Visit(Element element)
        {
            Employee employee = element as Employee;
            Console.WriteLine("{0}{1} is new vacation days: {2}", employee.GetType().Name, employee.Name, employee.VacationDays);
        }

    }
}
